#pragma once
#include "SLWindow.h"
#include "Console.h"
int WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance,
					  __in_opt LPSTR lpCmdLine, __in int nShowCmd )
{
	DBG_START_FUNCTION();
	SLWindow * pMainWin = new SLWindow();

	RECT	rcWindow = { 0 , 0, 1024 , 768 };
	
	if ( pMainWin->Initialize( "sltest", "sltest", 0, 0, NULL, rcWindow ) )
	{
		pMainWin->ShowBaseWindow();
		pMainWin->UpdateBaseWindow();
		pMainWin->MoveCenterWindow();
		pMainWin->SetFocusBaseWindow();
		pMainWin->PeekMessagePumping();
	}
	else
	{
		printf("Error !!!! Fail to create the window\n");
	}

	if ( pMainWin )
	{
		delete pMainWin;
		pMainWin = NULL;
	}

	return 0;

}
